-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix lbfgsb grad when bounds are specified #464
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mblondel
approved these changes
Jul 4, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Merged, thanks! In case you are motivated, I believe ScipyBoundedMinimize has the same issue (implicit diff works with positional arguments but not with keyword arguments). |
zaccharieramzi
added a commit
to zaccharieramzi/jaxopt
that referenced
this pull request
Jul 10, 2023
commit 8f8506d Merge: 56dcd16 404c518 Author: Zaccharie Ramzi <zaccharie.ramzi@gmail.com> Date: Mon Jul 10 14:11:27 2023 +0200 Merge branch 'main' into fix-broyden commit 56dcd16 Author: Zaccharie Ramzi <zaccharie.ramzi@gmail.com> Date: Mon Jul 10 14:11:05 2023 +0200 added broyden in common test + made sure it respects line search failure commit 404c518 Merge: 22a4af9 aedcfd7 Author: JAXopt authors <no-reply@google.com> Date: Wed Jul 5 02:11:33 2023 -0700 Merge pull request google#465 from vroulet:fix_zoom_max_stepsize_reached PiperOrigin-RevId: 545604666 commit 22a4af9 Merge: 9afa6f7 a5aada2 Author: JAXopt authors <no-reply@google.com> Date: Wed Jul 5 01:22:31 2023 -0700 Merge pull request google#464 from phinate:fix-lbfgsb-grad PiperOrigin-RevId: 545594782 commit aedcfd7 Author: Vincent Roulet <vroulet@google.com> Date: Tue Jul 4 16:52:40 2023 +0200 Fix zoom to handle first trial infinite or NaN commit a5aada2 Author: Nathan Simpson <nsimpson@turing.ac.uk> Date: Tue Jul 4 10:45:07 2023 +0100 add test commit 52a4cf8 Author: Nathan Simpson <nsimpson@turing.ac.uk> Date: Tue Jul 4 10:39:24 2023 +0100 set up correct signature, add _grad_fun commit 9afa6f7 Merge: 4e80f27 d30a1d9 Author: JAXopt authors <no-reply@google.com> Date: Mon Jul 3 02:18:34 2023 -0700 Merge pull request google#456 from Algue-Rythme:fixandersonaux PiperOrigin-RevId: 545162664 commit 4e80f27 Merge: fe57f15 924a1c1 Author: JAXopt authors <no-reply@google.com> Date: Fri Jun 30 02:45:07 2023 -0700 Merge pull request google#458 from mblondel:weak_type_consistency PiperOrigin-RevId: 544601673 commit 924a1c1 Author: Mathieu Blondel <mblondel@google.com> Date: Thu Jun 29 14:40:59 2023 +0200 Ensure weak-type consistency. commit fe57f15 Merge: e6fbf5f 35d34c8 Author: JAXopt authors <no-reply@google.com> Date: Fri Jun 30 00:10:16 2023 -0700 Merge pull request google#449 from vroulet:no_cond_in_zoom_linesearch PiperOrigin-RevId: 544574347 commit 35d34c8 Author: Vincent Roulet <vroulet@google.com> Date: Fri Jun 30 08:30:55 2023 +0200 add cond in zoom and globally commit e6fbf5f Author: JAXopt authors <no-reply@google.com> Date: Thu Jun 29 14:11:31 2023 -0700 Internal change PiperOrigin-RevId: 544458648 commit 5ff06fe Merge: 7238f76 47c2d39 Author: JAXopt authors <no-reply@google.com> Date: Thu Jun 29 13:34:11 2023 -0700 Merge pull request google#455 from Algue-Rythme:convenienceapi PiperOrigin-RevId: 544446827 commit 7238f76 Author: Fabian Pedregosa <pedregosa@google.com> Date: Thu Jun 29 08:00:34 2023 -0700 Internal change PiperOrigin-RevId: 544357158 commit fddcada Merge: 1572796 94ff4ec Author: JAXopt authors <no-reply@google.com> Date: Thu Jun 29 06:55:01 2023 -0700 Merge pull request google#457 from Algue-Rythme:docinterpolating PiperOrigin-RevId: 544343274 commit 47c2d39 Author: AlgueRythme <louis.bethune@ens-lyon.fr> Date: Thu Jun 29 12:14:04 2023 +0200 Extend convenience API for QP + doc commit 94ff4ec Author: AlgueRythme <louis.bethune@ens-lyon.fr> Date: Thu Jun 29 14:21:39 2023 +0200 Add interpolation explanations for Polyak/Armijo API doc commit d30a1d9 Author: AlgueRythme <louis.bethune@ens-lyon.fr> Date: Thu Jun 29 14:08:25 2023 +0200 support has_aux for AndersonAcceleration
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #463 by correctly instantiating the function signature, and by adding the
self._grad_fun
alias.Also adds a test to catch this is working (uses the example from #463).
(I've just signed the google CLA also!)